package com.cause.entiy.member;

import java.util.ArrayList;
import java.util.List;

public class MemberExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MemberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMidIsNull() {
            addCriterion("mid is null");
            return (Criteria) this;
        }

        public Criteria andMidIsNotNull() {
            addCriterion("mid is not null");
            return (Criteria) this;
        }

        public Criteria andMidEqualTo(Integer value) {
            addCriterion("mid =", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotEqualTo(Integer value) {
            addCriterion("mid <>", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThan(Integer value) {
            addCriterion("mid >", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThanOrEqualTo(Integer value) {
            addCriterion("mid >=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThan(Integer value) {
            addCriterion("mid <", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThanOrEqualTo(Integer value) {
            addCriterion("mid <=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidIn(List<Integer> values) {
            addCriterion("mid in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotIn(List<Integer> values) {
            addCriterion("mid not in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidBetween(Integer value1, Integer value2) {
            addCriterion("mid between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotBetween(Integer value1, Integer value2) {
            addCriterion("mid not between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMnumIsNull() {
            addCriterion("mnum is null");
            return (Criteria) this;
        }

        public Criteria andMnumIsNotNull() {
            addCriterion("mnum is not null");
            return (Criteria) this;
        }

        public Criteria andMnumEqualTo(String value) {
            addCriterion("mnum =", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumNotEqualTo(String value) {
            addCriterion("mnum <>", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumGreaterThan(String value) {
            addCriterion("mnum >", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumGreaterThanOrEqualTo(String value) {
            addCriterion("mnum >=", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumLessThan(String value) {
            addCriterion("mnum <", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumLessThanOrEqualTo(String value) {
            addCriterion("mnum <=", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumLike(String value) {
            addCriterion("mnum like", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumNotLike(String value) {
            addCriterion("mnum not like", value, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumIn(List<String> values) {
            addCriterion("mnum in", values, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumNotIn(List<String> values) {
            addCriterion("mnum not in", values, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumBetween(String value1, String value2) {
            addCriterion("mnum between", value1, value2, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnumNotBetween(String value1, String value2) {
            addCriterion("mnum not between", value1, value2, "mnum");
            return (Criteria) this;
        }

        public Criteria andMnameIsNull() {
            addCriterion("mname is null");
            return (Criteria) this;
        }

        public Criteria andMnameIsNotNull() {
            addCriterion("mname is not null");
            return (Criteria) this;
        }

        public Criteria andMnameEqualTo(String value) {
            addCriterion("mname =", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotEqualTo(String value) {
            addCriterion("mname <>", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameGreaterThan(String value) {
            addCriterion("mname >", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameGreaterThanOrEqualTo(String value) {
            addCriterion("mname >=", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameLessThan(String value) {
            addCriterion("mname <", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameLessThanOrEqualTo(String value) {
            addCriterion("mname <=", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameLike(String value) {
            addCriterion("mname like", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotLike(String value) {
            addCriterion("mname not like", value, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameIn(List<String> values) {
            addCriterion("mname in", values, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotIn(List<String> values) {
            addCriterion("mname not in", values, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameBetween(String value1, String value2) {
            addCriterion("mname between", value1, value2, "mname");
            return (Criteria) this;
        }

        public Criteria andMnameNotBetween(String value1, String value2) {
            addCriterion("mname not between", value1, value2, "mname");
            return (Criteria) this;
        }

        public Criteria andMenameIsNull() {
            addCriterion("mename is null");
            return (Criteria) this;
        }

        public Criteria andMenameIsNotNull() {
            addCriterion("mename is not null");
            return (Criteria) this;
        }

        public Criteria andMenameEqualTo(String value) {
            addCriterion("mename =", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameNotEqualTo(String value) {
            addCriterion("mename <>", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameGreaterThan(String value) {
            addCriterion("mename >", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameGreaterThanOrEqualTo(String value) {
            addCriterion("mename >=", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameLessThan(String value) {
            addCriterion("mename <", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameLessThanOrEqualTo(String value) {
            addCriterion("mename <=", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameLike(String value) {
            addCriterion("mename like", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameNotLike(String value) {
            addCriterion("mename not like", value, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameIn(List<String> values) {
            addCriterion("mename in", values, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameNotIn(List<String> values) {
            addCriterion("mename not in", values, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameBetween(String value1, String value2) {
            addCriterion("mename between", value1, value2, "mename");
            return (Criteria) this;
        }

        public Criteria andMenameNotBetween(String value1, String value2) {
            addCriterion("mename not between", value1, value2, "mename");
            return (Criteria) this;
        }

        public Criteria andMemailIsNull() {
            addCriterion("memail is null");
            return (Criteria) this;
        }

        public Criteria andMemailIsNotNull() {
            addCriterion("memail is not null");
            return (Criteria) this;
        }

        public Criteria andMemailEqualTo(String value) {
            addCriterion("memail =", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailNotEqualTo(String value) {
            addCriterion("memail <>", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailGreaterThan(String value) {
            addCriterion("memail >", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailGreaterThanOrEqualTo(String value) {
            addCriterion("memail >=", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailLessThan(String value) {
            addCriterion("memail <", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailLessThanOrEqualTo(String value) {
            addCriterion("memail <=", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailLike(String value) {
            addCriterion("memail like", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailNotLike(String value) {
            addCriterion("memail not like", value, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailIn(List<String> values) {
            addCriterion("memail in", values, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailNotIn(List<String> values) {
            addCriterion("memail not in", values, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailBetween(String value1, String value2) {
            addCriterion("memail between", value1, value2, "memail");
            return (Criteria) this;
        }

        public Criteria andMemailNotBetween(String value1, String value2) {
            addCriterion("memail not between", value1, value2, "memail");
            return (Criteria) this;
        }

        public Criteria andMsjIsNull() {
            addCriterion("msj is null");
            return (Criteria) this;
        }

        public Criteria andMsjIsNotNull() {
            addCriterion("msj is not null");
            return (Criteria) this;
        }

        public Criteria andMsjEqualTo(String value) {
            addCriterion("msj =", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjNotEqualTo(String value) {
            addCriterion("msj <>", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjGreaterThan(String value) {
            addCriterion("msj >", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjGreaterThanOrEqualTo(String value) {
            addCriterion("msj >=", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjLessThan(String value) {
            addCriterion("msj <", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjLessThanOrEqualTo(String value) {
            addCriterion("msj <=", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjLike(String value) {
            addCriterion("msj like", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjNotLike(String value) {
            addCriterion("msj not like", value, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjIn(List<String> values) {
            addCriterion("msj in", values, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjNotIn(List<String> values) {
            addCriterion("msj not in", values, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjBetween(String value1, String value2) {
            addCriterion("msj between", value1, value2, "msj");
            return (Criteria) this;
        }

        public Criteria andMsjNotBetween(String value1, String value2) {
            addCriterion("msj not between", value1, value2, "msj");
            return (Criteria) this;
        }

        public Criteria andMdhIsNull() {
            addCriterion("mdh is null");
            return (Criteria) this;
        }

        public Criteria andMdhIsNotNull() {
            addCriterion("mdh is not null");
            return (Criteria) this;
        }

        public Criteria andMdhEqualTo(String value) {
            addCriterion("mdh =", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhNotEqualTo(String value) {
            addCriterion("mdh <>", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhGreaterThan(String value) {
            addCriterion("mdh >", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhGreaterThanOrEqualTo(String value) {
            addCriterion("mdh >=", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhLessThan(String value) {
            addCriterion("mdh <", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhLessThanOrEqualTo(String value) {
            addCriterion("mdh <=", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhLike(String value) {
            addCriterion("mdh like", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhNotLike(String value) {
            addCriterion("mdh not like", value, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhIn(List<String> values) {
            addCriterion("mdh in", values, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhNotIn(List<String> values) {
            addCriterion("mdh not in", values, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhBetween(String value1, String value2) {
            addCriterion("mdh between", value1, value2, "mdh");
            return (Criteria) this;
        }

        public Criteria andMdhNotBetween(String value1, String value2) {
            addCriterion("mdh not between", value1, value2, "mdh");
            return (Criteria) this;
        }

        public Criteria andMaddressIsNull() {
            addCriterion("maddress is null");
            return (Criteria) this;
        }

        public Criteria andMaddressIsNotNull() {
            addCriterion("maddress is not null");
            return (Criteria) this;
        }

        public Criteria andMaddressEqualTo(String value) {
            addCriterion("maddress =", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressNotEqualTo(String value) {
            addCriterion("maddress <>", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressGreaterThan(String value) {
            addCriterion("maddress >", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressGreaterThanOrEqualTo(String value) {
            addCriterion("maddress >=", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressLessThan(String value) {
            addCriterion("maddress <", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressLessThanOrEqualTo(String value) {
            addCriterion("maddress <=", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressLike(String value) {
            addCriterion("maddress like", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressNotLike(String value) {
            addCriterion("maddress not like", value, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressIn(List<String> values) {
            addCriterion("maddress in", values, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressNotIn(List<String> values) {
            addCriterion("maddress not in", values, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressBetween(String value1, String value2) {
            addCriterion("maddress between", value1, value2, "maddress");
            return (Criteria) this;
        }

        public Criteria andMaddressNotBetween(String value1, String value2) {
            addCriterion("maddress not between", value1, value2, "maddress");
            return (Criteria) this;
        }

        public Criteria andMqqIsNull() {
            addCriterion("mqq is null");
            return (Criteria) this;
        }

        public Criteria andMqqIsNotNull() {
            addCriterion("mqq is not null");
            return (Criteria) this;
        }

        public Criteria andMqqEqualTo(String value) {
            addCriterion("mqq =", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqNotEqualTo(String value) {
            addCriterion("mqq <>", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqGreaterThan(String value) {
            addCriterion("mqq >", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqGreaterThanOrEqualTo(String value) {
            addCriterion("mqq >=", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqLessThan(String value) {
            addCriterion("mqq <", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqLessThanOrEqualTo(String value) {
            addCriterion("mqq <=", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqLike(String value) {
            addCriterion("mqq like", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqNotLike(String value) {
            addCriterion("mqq not like", value, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqIn(List<String> values) {
            addCriterion("mqq in", values, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqNotIn(List<String> values) {
            addCriterion("mqq not in", values, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqBetween(String value1, String value2) {
            addCriterion("mqq between", value1, value2, "mqq");
            return (Criteria) this;
        }

        public Criteria andMqqNotBetween(String value1, String value2) {
            addCriterion("mqq not between", value1, value2, "mqq");
            return (Criteria) this;
        }

        public Criteria andMgjIsNull() {
            addCriterion("mgj is null");
            return (Criteria) this;
        }

        public Criteria andMgjIsNotNull() {
            addCriterion("mgj is not null");
            return (Criteria) this;
        }

        public Criteria andMgjEqualTo(String value) {
            addCriterion("mgj =", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjNotEqualTo(String value) {
            addCriterion("mgj <>", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjGreaterThan(String value) {
            addCriterion("mgj >", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjGreaterThanOrEqualTo(String value) {
            addCriterion("mgj >=", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjLessThan(String value) {
            addCriterion("mgj <", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjLessThanOrEqualTo(String value) {
            addCriterion("mgj <=", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjLike(String value) {
            addCriterion("mgj like", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjNotLike(String value) {
            addCriterion("mgj not like", value, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjIn(List<String> values) {
            addCriterion("mgj in", values, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjNotIn(List<String> values) {
            addCriterion("mgj not in", values, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjBetween(String value1, String value2) {
            addCriterion("mgj between", value1, value2, "mgj");
            return (Criteria) this;
        }

        public Criteria andMgjNotBetween(String value1, String value2) {
            addCriterion("mgj not between", value1, value2, "mgj");
            return (Criteria) this;
        }

        public Criteria andMcityIsNull() {
            addCriterion("mcity is null");
            return (Criteria) this;
        }

        public Criteria andMcityIsNotNull() {
            addCriterion("mcity is not null");
            return (Criteria) this;
        }

        public Criteria andMcityEqualTo(String value) {
            addCriterion("mcity =", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityNotEqualTo(String value) {
            addCriterion("mcity <>", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityGreaterThan(String value) {
            addCriterion("mcity >", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityGreaterThanOrEqualTo(String value) {
            addCriterion("mcity >=", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityLessThan(String value) {
            addCriterion("mcity <", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityLessThanOrEqualTo(String value) {
            addCriterion("mcity <=", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityLike(String value) {
            addCriterion("mcity like", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityNotLike(String value) {
            addCriterion("mcity not like", value, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityIn(List<String> values) {
            addCriterion("mcity in", values, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityNotIn(List<String> values) {
            addCriterion("mcity not in", values, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityBetween(String value1, String value2) {
            addCriterion("mcity between", value1, value2, "mcity");
            return (Criteria) this;
        }

        public Criteria andMcityNotBetween(String value1, String value2) {
            addCriterion("mcity not between", value1, value2, "mcity");
            return (Criteria) this;
        }

        public Criteria andMbzIsNull() {
            addCriterion("mbz is null");
            return (Criteria) this;
        }

        public Criteria andMbzIsNotNull() {
            addCriterion("mbz is not null");
            return (Criteria) this;
        }

        public Criteria andMbzEqualTo(String value) {
            addCriterion("mbz =", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotEqualTo(String value) {
            addCriterion("mbz <>", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzGreaterThan(String value) {
            addCriterion("mbz >", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzGreaterThanOrEqualTo(String value) {
            addCriterion("mbz >=", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzLessThan(String value) {
            addCriterion("mbz <", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzLessThanOrEqualTo(String value) {
            addCriterion("mbz <=", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzLike(String value) {
            addCriterion("mbz like", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotLike(String value) {
            addCriterion("mbz not like", value, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzIn(List<String> values) {
            addCriterion("mbz in", values, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotIn(List<String> values) {
            addCriterion("mbz not in", values, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzBetween(String value1, String value2) {
            addCriterion("mbz between", value1, value2, "mbz");
            return (Criteria) this;
        }

        public Criteria andMbzNotBetween(String value1, String value2) {
            addCriterion("mbz not between", value1, value2, "mbz");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}